package com.entity;

import java.util.Date;

public class News {
    private Integer n_id;
    private String n_title;
    private String u_name;
    private String t_name;
    private String n_content;
    private int n_status;
    private Date create_time;
    private Date update_time;

    @Override
    public String toString() {
        return "News{" +
                "n_id=" + n_id +
                ", n_title='" + n_title + '\'' +
                ", u_name='" + u_name + '\'' +
                ", t_name='" + t_name + '\'' +
                ", n_content='" + n_content + '\'' +
                ", n_status=" + n_status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }

    public News() {}

    public News(Integer n_id, String n_title, String u_name, String t_name, String n_content, int n_status, Date create_time, Date update_time) {
        this.n_id = n_id;
        this.n_title = n_title;
        this.u_name = u_name;
        this.t_name = t_name;
        this.n_content = n_content;
        this.n_status = n_status;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public Integer getN_id() {
        return n_id;
    }

    public void setN_id(Integer n_id) {
        this.n_id = n_id;
    }

    public String getN_title() {
        return n_title;
    }

    public void setN_title(String n_title) {
        this.n_title = n_title;
    }

    public String getU_name() {
        return u_name;
    }

    public void setU_name(String u_name) {
        this.u_name = u_name;
    }

    public String getT_name() {
        return t_name;
    }

    public void setT_name(String t_name) {
        this.t_name = t_name;
    }

    public String getN_content() {
        return n_content;
    }

    public void setN_content(String n_content) {
        this.n_content = n_content;
    }

    public int getN_status() {
        return n_status;
    }

    public void setN_status(int n_status) {
        this.n_status = n_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
